<?php /**  * Template Name: Front Page */ ?>

<?php 
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
get_header(); ?>


  <div id="content" class="home-page">
    <div class="wrap">
    
      <div class="sep sepinside">&nbsp;</div>
    
      <?php wp_reset_query(); 
      if (have_posts()) : while (have_posts()) : the_post(); ?>
      
      <div class="column column-double column-content column-last">
        <?php include (ABSPATH . '/wp-content/plugins/wp-featured-content-slider/content-slider.php');?>
      
      </div><!-- end .column-double -->

      <div class="column column-narrow column-right"id="labs">
      		<div>
				<h3>Research Labs</h3>
				<ul>
					<li id="lab-homepage-lcr">
						<?php echo '<a href="'.get_bloginfo('siteurl').'/laboratories/laboratory-for-coastal-research/">Laboratory for Coastal Research</a>'; ?>
					</li>
					<li id="lab-homepage-lifer">
						<?php echo '<a href="'.get_bloginfo('siteurl').'/laboratories/laboratory-for-insurance-financial-and-economic-research/">Laboratory for Insurance, Financial and Economic Research</a>'; ?>
					</li>
					<li id="lab-homepage-lssr">
						<?php echo '<a href="'.get_bloginfo('siteurl').'/laboratories/laboratory-for-social-science-research/">Laboratory for Social Science Research</a>'; ?>
					</li>
					<li id="lab-homepage-lwer">
						<?php echo '<a href="'.get_bloginfo('siteurl').'/laboratories/laboratory-for-wind-engineering-research/">Laboratory for Wind Engineering Research</a>'; ?>
					</li>
				</ul>
			</div>
      </div><!-- end .column-narrow -->
	
      <div class="clear">&nbsp;</div>

		<div class="col-2">
			<div class="col-1" id="home_goals">
				<div class="widget">
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage (Middle)') ) : ?>&nbsp;<?php endif; ?>
				</div>
			</div>
			<div class="col-1" id="home_kids">
				<h4>Kid's Corner</h4>
				<p id="kids_corner_q">What is the deadliest hurricane on record?</p>
				<p class="button">
					<?php echo '<a href="'.get_bloginfo('siteurl').'/outreach-education/kids-corner/" title="Kid\'s Corner">Kid\'s Corner</a>'; ?>
				</p>
			</div>
		</div>
		
		<div class="col-1 last">
			<div id="home_latestnews">
				<h2>Latest News</h2>
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage (Right)') ) : ?>&nbsp;<?php endif; ?>
			</div>
		</div>
		
		<div class="col-2">
			<div id="home_uptodate">
				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage (Left)') ) : ?>&nbsp;<?php endif; ?>
			</div>
		</div>

<?php endwhile; endif; ?>

      <div class="clear">&nbsp;</div>

    </div><!-- end .wrap -->
  </div><!-- end #content -->

<?php get_footer(); ?>
